home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: mntlib: problem with pipes
- Date: Sat, 28 May 94 16:39:52 CDT
- From: Juergen Lock <nox@jelal.north.de>
- In-Reply-To: <9405272337.AA22789@irs.inf.tu-dresden.de>; from "Michael Hohmuth" at May 28, 94 1:37 am
- Message-Id: <9405281439.AA00901@jelal.north.de>
-
- Michael Hohmuth writes:
-
- > # cat .cshrc | more
- >
- > Suspended (tty output)
- > [1] 35 36
- > #
- >
- > (This also happens with tcsh 6.04.) The same thing works fine with tcsh 6.03
- > + mntlib PL 30 (and has ever worked under every version of MiNT).
- >
- > I don't know exactly which mntlib PL introduces the problem...
-
- eeks!
-
- Julian is your ps public yet? :) i don't have tcsh but my ksh still
- works when linked with pl > 30... maybe something to do with your ttys
- pgroup, is it still 0? heres a simple test, preferably run from another
- terminal... (with </dev/tcsh's.tty)
-
- #include <stdio.h>
- #include <ioctl.h>
-
- main(argc,argv)
- int argc;
- char *argv[];
- {
- int fd;
- char *f = "stdin";
- long pgrp;
-
- fd = 0;
- if (!(isatty(fd))) {
- if ((fd = open("U:\\dev\\tty",0)) < 0) {
- perror("can't open tty");
- exit(1);
- }
- f = "/dev/tty";
- }
-
- if (ioctl(fd,TIOCGPGRP,&pgrp)) {
- perror("can't do ioctl");
- exit(1);
- }
-
- printf("%s pgrp: %ld\n", f, pgrp);
-
- exit(0);
- }
- --
- J"urgen Lock / nox@jelal.north.de / UUCP: ..!uunet!unido!uniol!jelal!nox
- ...ohne Gewehr
- PGP public key fingerprint = 8A 18 58 54 03 7B FC 12 1F 8B 63 C7 19 27 CF DA
-